package simulator.ui;

import java.awt.Dimension;

import javax.swing.JPanel;

/**
 * Abstract class for Swing components that render the state of scenarios.
 * 
 * @author Kyle Loomis
 * 
 */
public abstract class ScenarioRenderer extends JPanel implements
      SimulationListener
{
   private static final long serialVersionUID = 1L;

   public Dimension getPreferredSize()
   {
      return new Dimension(900, 400);
   }

   public void onScenarioChanged()
   {
      repaint();
   }

   public void onScenarioStart()
   {
      repaint();
   }

   public void onScenarioStop()
   {
      repaint();
   }
}
